// Name:            Forms
//
// Component:       `form`
//
// ========================================================================

// Variables
// ========================================================================


// Component: Form
// ========================================================================

.form-control {
  border-color: $input-border;  // add from---v3
  box-shadow: none; // for remove iphone-safari input box-shadow inset
  // &:not(select) {//remove ios default style but select triangle'problem also
}

// Unified style for select
select.form-control {
  background: $input-bg url() no-repeat center right;
}

select[multiple].form-control {
  background-image: none;
}

// form-control-label
// -- update 20160627 fish

// --

// -- update 20160627 fish from dev-v4-a3 about label and legend
// only here  and not change related
// so here we only add this code snippets
// .col-form-label {
//   padding-top: $input-padding-y;
//   padding-bottom: $input-padding-y;
//   margin-bottom: 0; // Override the `<label>` default
// }

// .col-form-label-lg {
//   padding-top: $input-padding-y-lg;
//   padding-bottom: $input-padding-y-lg;
//   font-size: $font-size-lg;
// }

// .col-form-label-sm {
//   padding-top: $input-padding-y-sm;
//   padding-bottom: $input-padding-y-sm;
//   font-size: $font-size-sm;
// }

// .col-form-legend {
//   padding-top: $input-padding-y;
//   padding-bottom: $input-padding-y;
//   margin-bottom: 0;
//   font-size: $font-size-base;
// }
// --

// // states
// .has-success {
//   @include form-control-extend-validation($form-success-text, $form-success-text, $form-success-bg);
// }

// .has-warning {
//   @include form-control-extend-validation($form-warning-text, $form-warning-text, $form-warning-bg);
// }

// // .has-error class was replace by .has-danger(v4)
// .has-danger {
//   @include form-control-extend-validation($form-danger-text, $form-danger-text, $form-danger-bg);
// }

// Modifier: `input-group-file`
// ----------------------------
.input-group-file {
  input[type="text"] {
    background-color: $input-bg;
  }

  .btn-file {
    &.btn-outline {
      border: 1px solid $input-border;
      border-left: none;

      &:hover {
        border-left: none;
      }
    }
  }
}

// Modifier: `help-block`
// "help-block" was replace by "text-help" in alpha2
// alpha3 instead of it with <small class="text-muted">
// Here retain it for some js plugin style it
// ----------------------
.text-help {
  color: lighten($text-color, 25%);  // add v3
}

// Input Search
// ========================================================================
.input-search-close {
  color: $close-color;
  text-shadow: $close-text-shadow;

  &:hover,
  &:focus {
    color: $close-color;
  }
}

button.input-search-close {
  background: transparent;
  border: 0;
}

.input-search {
  .input-search-icon {
    color: $input-placeholder-color;
  }
}

.input-search-btn {
  background: transparent;
  border: none;
}

.input-search-dark {
  .input-search-icon {
    color: $gray-500;
  }

  .form-control {
    background: $gray-100;
    box-shadow: none;

    &:focus {
      background-color: $input-focus-bg;
    }
  }
}

// Inline forms
// ========================================================================

// Horizontal forms
// ========================================================================
//for remove ie11 Pseudo class text
